<?php

namespace Application\Model;

use Zend\Form\Annotation;

class Invitation {
	
	public $idInvit;
	public $mailInvit;
	public $mailEnvoye;
	public $dateInvit;
	
	public function exchangeArray($data)
	{
		$this->idInvit = (isset($data['idInvit'])) ? $data['idInvit'] : null;
		$this->mailInvit = (isset($data['mailInvit'])) ? $data['mailInvit'] : null;
		$this->mailEnvoye = (isset($data['mailEnvoye'])) ? $data['mailEnvoye'] : 'non';
		$this->dateInvit = (isset($data['dateInvit'])) ? $data['dateInvit'] : date('Y-m-d H:i:s');
	}
}
